package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ReportImg;
import com.api.shopapi.mapper.ReportImgMapper;
import com.api.shopapi.service.ReportImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ReportImgServiceImplOne")
public class ReportImgServiceImpl implements ReportImgService {

    @Autowired
    private ReportImgMapper reportImgMapper;

    @Override
    public int insert(ReportImg reportImg) {
        return reportImgMapper.insert(reportImg);
    }

    @Override
    public int update(ReportImg reportImg) {
        return reportImgMapper.update(reportImg);
    }

    @Override
    public int delete(String reportImgCode) {
        return reportImgMapper.delete(reportImgCode);
    }

    @Override
    public ReportImg getByReportImg(String reportImgCode) {
        return reportImgMapper.getByReportImgCode(reportImgCode);
    }

    @Override
    public List<ReportImg> getListByReportCode(String reportCode) {
        return reportImgMapper.getListByReportCode(reportCode);
    }
}
